package com.inspur.dgov.vlbod.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.inspur.dgov.vlbod.entity.LiveShare;
import com.inspur.dgov.vlbod.mapper.LiveShareMapper;
import com.inspur.dgov.vlbod.service.LiveShareService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chiyupei
 * @since 2023-05-28
 */
@Service
public class LiveShareServiceImpl extends ServiceImpl<LiveShareMapper, LiveShare> implements LiveShareService {

    @Override
    public LiveShare selectLiveShareByUrl(String shareUrl){
        QueryWrapper<LiveShare> wrapper = new QueryWrapper<>();
        wrapper.lambda().eq(LiveShare::getShareUrl,shareUrl);
        return this.getOne(wrapper);
    }
}
